<?php
class PostHasTag extends  AppModel{
	var $name = 'PostHasTag' ;
	var $useTable = 'posts_has_tags' ;
	
	var $belongsTo = array(
		'Tag'=>array(
			'className'=>'Tag',
			'foreignKey'=>'tags_id',
		),
		'Post'=>array(
			'className'=>'Post',
			'foreignKey'=>'posts_id'
		)
	);
}
?>